/*
 * 文件名：IContextManager.java
 * 版权：Copyright 2006-2011 AsiaInfo Tech. Co. Ltd. All Rights Reserved. 
 * 描述： IContextManager.java
 * 修改人：齐鹏飞
 * 修改时间：2011-9-7
 * 修改内容：新增
 */
package com.fengxing.ams.web.common;

import java.util.List;
import java.util.Map;

import javax.servlet.ServletContext;

import com.fengxing.ams.pub.dto.PubInfoDTO;
import com.fengxing.ams.pub.vo.LogVO;
import com.fengxing.ams.pub.vo.RequestVO;
import com.fengxing.ams.web.facade.mouble.college.CollegeVO;
import com.fengxing.ams.web.facade.mouble.user.UserVO;

/**
 * CTMS 上下文管理接口类
 * <p>
 * CTMS 上下文管理接口类
 * <p>
 * 
 * <pre>
 * </pre>
 * 
 * @author 齐鹏飞
 * @version CTMS V100R001 2011-9-7
 * @since CTMS V100R001C01
 */
public interface IContextManager {

	/**
	 * 
	 * 设置当前线程LogID
	 * 
	 * @param reqeuestID
	 *            日志ID
	 */
	void setRequestID(String reqeuestID);

	/**
	 * 
	 * 获取当前请求唯一标示
	 * 
	 * @return 请求标示
	 */
	String getRequestID();

	/**
	 * 
	 * 释放当前线程上下文信息
	 * 
	 */
	void desctory();

	/**
	 * 
	 * 获取话单VO
	 * 
	 * @return 话单VO
	 */
	LogVO getCdrVO();

	/**
	 * 
	 * 获取当前请求的请求信息
	 * 
	 * @return 请求信息
	 */
	RequestVO getRequestInfo();

	ServletContext getServletContext();

	void setServletContext(ServletContext servletContext);

	void setPubInfo(PubInfoDTO pubInfo);

	PubInfoDTO getPubInfo();

	void setRequestParameters(Map<String, String[]> parameterMap);

	Map<String, String[]> getRequestParameters();

	void setHost(String host);
	
	String getHost();
	
	String getMessage(String key);

	void putCollege(Integer college_id, CollegeVO me);

	CollegeVO getCollegeVO(Integer college_id);

	String getCollegeCode(Integer college_id);

	void putCollegeIdCollegeCodeMap(Object object, Object object2);

	void createSession(UserVO userVO);
	
	void deleteSession(UserVO userVO);
	
	UserVO getSession(String token);

	void setUserVO(UserVO userVO);
	
	UserVO getUserVO();

	void clearSession();

	UserVO getSupperManagerUserVO();

	UserVO getManagerUserVO(Integer collegeId);

	void setAllManagerUser(List<UserVO> users);

	void setSupperManagerUser(UserVO userVO);

	Long getLastQueryNoficationTime();

	void setSessionEntity(String tokenParam);

	void setLastQueryNotificationTime();


}
